const modulesFiles = import.meta.glob('./modules/**/*.js', { eager: true })

const modules = {}
for (const key in modulesFiles) {
  modules[key.replace(/^\.\/(.*)\.\w+$/, '$1')] = modulesFiles[key].default
}

let appList = {}
for (const key in modules) {
  appList = { ...appList, ...modules[key] }
}

export default appList
